﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
using System.IO;
using Galaxy.ModuleInterface;
using Galaxy.Loader.Information;
using System.Windows.Forms;

namespace Galaxy.Loader
{
    public sealed class Program
    {
        [STAThread]
        public static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);



            Console.WriteLine("Работу закончил.");
            Console.ReadLine();
        }

        private static void Serialize(object Object, Stream stream)
        {
            XmlSerializer Serializer = new XmlSerializer(Object.GetType());
            Serializer.Serialize(stream, Object);
        }

        private static T Deserialize<T>(Stream stream)
        {   
            XmlSerializer Serializer = new XmlSerializer(typeof(T));
            return (T)Serializer.Deserialize(stream);
        }
    }
}
